<link type="text/css" href="${base}/template/css/common.css" rel="stylesheet" />
<link type="text/css" href="${base}/template/css/main.css" rel="stylesheet" />
<script type="text/javascript" src="${base}/template/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${base }/template/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="${base}/template/js/jquery.blockUI.js"></script>
<script type="text/javascript">
	$(function() {
		var opts = {
			width : 695,
			minChars : 1,
			resultsClass : "sug_wrapper",
			max : 10,
			scroll : false,
			matchContains : false,
			selectFirst : false
		};
	$("#searchForm").submit(function() {
		var $keyWord = $("input[name='keyWord']");
		if ($keyWord.val() == "") {
			return false;
		}
		var url = "${base}${search}/wd--"+$keyWord.val();
		window.location.href = url;
		return false;
	});
	$("input[name='keyWord']").autocomplete("${base}${search}" + "/suggest", opts).result(
			function() {
				$("#searchForm").submit();
			});
	})
</script>